# 111-123
# 学生类的设计
class Student:
    name = None
    gender = None
    nationality = None
    native_place = None
    age = None

    def say_hi(self):
        print(f"Hello, 我是{self.name}!")

    def say_something(self, msg):
        print(f"我想说：{msg}")

#
# stu_1 = Student()
# stu_1.name = "周杰伦"
# stu_1.say_hi()
# stu_1.say_something('我爱你')



# 设计一个闹钟类
class Clock:
    id = None  # 序列化
    price = None  # 价格

    def ring(self):
        import winsound
        winsound.Beep(1000,2000)



clock1 = Clock()
clock1.id = '03021'
clock1.price = 19.99
print(f"闹钟ID:{clock1.id},价格：:{clock1.price}")
clock1.ring()

clock2 = Clock()
clock2.id = '03022'
clock2.price = 21.99
print(f"闹钟ID:{clock2.id},价格：:{clock2.price}")
clock2.ring()



